package com.fhz.day013jetpackall.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.fhz.day013jetpackall.entity.Banner;

import java.util.List;

/**
 * 时间:2022/5/31
 *
 * @author msfeng
 * 简述: TODO
 */
@Dao
public interface BannerDao {

    @Insert
    void insertBanners(Banner... banners); //代表可以输入一个数组.

    @Query("select * from banner")
    List<Banner> getBanners();

}

